package com.boot.system.entity;

import com.boot.common.entity.BaseEntity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 系统日志
 */
@Getter
@Setter
@Accessors(chain = true)
@Table(value = "sys_log")
public class SysLog extends BaseEntity {

    /**
     * 操作用户
     */
    @Column(value = "username")
    private String username;

    /**
     * 调用方法
     */
    @Column(value = "func")
    private String func;

    /**
     * 请求方式
     */
    @Column(value = "request_method")
    private String requestMethod;

    /**
     * 请求参数
     */
    @Column(value = "request_params")
    private String requestParams;

    /**
     * 响应结果
     */
    @Column(value = "response_content")
    private String responseContent;

    /**
     * 接口描述
     */
    @Column(value = "content")
    private String content;

    /**
     * 异常信息
     */
    @Column(value = "error_content")
    private String errorContent;

    /**
     * 请求接口
     */
    @Column(value = "request_uri")
    private String requestUri;

    /**
     * IP地址
     */
    @Column(value = "ip")
    private String ip;

    /**
     * 浏览器
     */
    @Column(value = "browser")
    private String browser;

    /**
     * 浏览器版本
     */
    @Column(value = "browser_version")
    private String browserVersion;

    /**
     * 终端系统
     */
    @Column(value = "os")
    private String os;

    /**
     * 状态 1正常 0异常
     */
    @Column(value = "status")
    private Integer status;

    /**
     * 执行时间(毫秒)
     */
    @Column(value = "exec_time")
    private Long execTime;

}